package demo12_FunctionInterface;

import java.util.function.Consumer;
import java.util.function.Supplier;

/**
 * @author kunkun
 * @className Test04_Supplier
 * @Description 供给者函数式接口
 * @date 2025/3/6 21:05
 */
public class Test04_Supplier {

    public static void main(String[] args) {
        Supplier<Integer> supplier = ()->{
            return 1024;
        };  //供给者函数式接口，没有输入，一个返回值
        System.out.println(supplier.get());
    }

}
